package org.jeecg.modules.demo.oa.service;

import org.jeecg.modules.demo.oa.entity.OaHetongShenpi;
import org.jeecg.modules.demo.oa.entity.OaHetong;
import com.baomidou.mybatisplus.extension.service.IService;
import java.io.Serializable;
import java.util.Collection;
import java.util.List;

/**
 * @Description: 合同审批表
 * @Author: jeecg-boot
 * @Date:   2024-09-11
 * @Version: V1.0
 */
public interface IOaHetongService extends IService<OaHetong> {

	/**
	 * 添加一对多
	 *
	 * @param oaHetong
	 * @param oaHetongShenpiList
	 */
	public void saveMain(OaHetong oaHetong,List<OaHetongShenpi> oaHetongShenpiList) ;
	
	/**
	 * 修改一对多
	 *
   * @param oaHetong
   * @param oaHetongShenpiList
	 */
	public void updateMain(OaHetong oaHetong,List<OaHetongShenpi> oaHetongShenpiList);
	
	/**
	 * 删除一对多
	 *
	 * @param id
	 */
	public void delMain (String id);
	
	/**
	 * 批量删除一对多
	 *
	 * @param idList
	 */
	public void delBatchMain (Collection<? extends Serializable> idList);

	public void tijiao(List<String> list);

	public void fanTijiao(List<String> list);

	public void shenpi(OaHetongShenpi oaHetongShenpi);
}
